﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLogic
{
  public class CacheCommon
  {
    /// <summary>
    /// Cache the input data, if caching is enabled
    /// </summary>
    public static void CacheData(string key, object data)
    {
      if (data != null)
      {
        BizObject.Cache.Insert(key, data, null,
           DateTime.Now.AddSeconds(600), TimeSpan.Zero);
      }
    }
  }
}
